@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
    
        <div class="form-horizontal" id="jobInfoForm">

            <input type="hidden" id="id"  name="id" value="${job.id}">
            <input type="hidden" id="type" name="type" value="update">
            <input type="hidden" id="beanname" name="beanname" value="${job.springBeanName}">
             <input type="hidden" id="mname" name="mname" value="${job.methodName}">
            <div class="row">
            <div class="col-sm-11 b-r">

					<#input id='jobName' name='任务名称' underline='true' value="${job.jobName}" />

				
				    <div class="form-group">
                    <label class="col-sm-3 control-label">类名称</label>
                     <div class="col-sm-9">
    	                <select class="form-control" id="springBeanName" 
					     name="springBeanName" onchange="JobInfoDlg.showMethods()"></select>
                     </div>
                   </div>

                   <div class="hr-line-dashed"></div>

				
				   <div class="form-group">
                    <label class="col-sm-3 control-label">方法名<span style="color: red">（目前仅支持无参方法）</span></label>
                     <div class="col-sm-9">
    	                <select class="form-control" id="methodName" 
					     name="methodName"></select>
                     </div>
                   </div>

                   <div class="hr-line-dashed"></div>
				
			
			
			       <div class="form-group">
                    <label class="col-sm-3 control-label">cron表达式</label>
                     <div class="col-sm-9">
    	                <input type="text" class="form-control" placeholder="请输入表达式" id="cron" name="cron" value="${job.cron}" />
                     </div>
                   </div>

                   <div class="hr-line-dashed"></div>
			
			
			   
					<#select id="status" name="状态" underline='true'>
						<option value="0"
						@if(job.status=="0"){
						 selected
						@}
						
						>停止</option>
						<option value="1"
						@if(job.status=="1"){
						 selected
						@}
						>正常</option>
				    </#select>
			    <#input id='description' name='描述' underline='true' value="${job.description}"/>
				<#input id='remarks' name='备注' underline='true' value="${job.remarks}"/>

                </div>
                
                
                
                

              
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-11">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="JobInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="JobInfoDlg.close()"/>
                </div>
            </div>
            
        </div>

    </div>
</div>
<script src="/modular/system/job/job_info.js"></script>
@}
